<?php
/*
 * Created on Nov 19, 2007
 * File: reporting.php
 * Project: BIMP
 * Author: jerrad
 */
 
  //require the includes php file one directory up
 require_once(dirname(__FILE__). DIRECTORY_SEPARATOR ."includes.php");

 
function __autoload($class_name) {

      if($exists = !class_exists($class_name) && file_exists($class = CLASS_PATH.$class_name.'.class.php')){
        require_once $class;
        }
   	  elseif(!$exists) {
        eval('class '.$class_name.' extends Exception {}');
        throw new $class_name('[__autoload] this file doesn\'t exists: '.$class);
   	 }
}


try {
	 $smarty = TemplateController::CreateDefaultSmartyObject();
	 
	 //Set the main navigation menu
	 TemplateController::MainNavigationMenu($smarty, "Reporting");
	 
	 $smarty->display('index.tpl');
}
catch(Undefined $e) {
    echo $e->getMessage();
}
catch(Exception $e) {
    echo $e->getMessage();
}
 
 
?>
